home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / eulisp / you-075a.lha / you-075a / defs.h < prev    next >
C/C++ Source or Header  |  1992-06-21  |  2KB  |  88 lines

  1. /* ******************************************************************** */
  2. /*  defs.h           Copyright (C) Codemist and University of Bath 1989 */
  3. /*                                                                      */
  4. /* Basic definitions global constants and config options                */
  5. /* ******************************************************************** */
  6.  
  7. /*
  8.  * Change Log:
  9.  *   Version 1, April 1989
  10.  */
  11.  
  12. #ifndef DEFS_H
  13. #define DEFS_H
  14.  
  15. #ifndef TRUE
  16. #define TRUE    (1)
  17. #define FALSE     (0)
  18. #endif
  19.  
  20. #define CONTINUABLE    (2)
  21. #define NONCONTINUABLE    (3)
  22.  
  23. #define STUB(name) printf("*** stub %s called\n", name)
  24.  
  25. #define IGNORE(name)    (name = name)
  26.  
  27. /* reverse a few flags */
  28. #ifndef LOWTAGINTS
  29. #define NOLOWTAGINTS
  30. #endif
  31.  
  32. #ifndef DEBUG
  33. #define NODEBUG
  34. #endif
  35.  
  36. #ifdef MACHINE_SYSTEMV
  37. #define MAX_PROCESSORS (10)
  38. #endif
  39.  
  40. #ifdef MACHINE_BSD
  41. #define MAX_PROCESSORS (1)
  42. #endif
  43.  
  44. #ifdef MACHINE_ANY
  45. #define MAX_PROCESSORS (1)
  46. #endif
  47.  
  48. #ifndef MAX_PROCESSORS
  49.  "Specify one of BSD, ANY, SYSTEMV"
  50. #endif
  51.  
  52. #define RESET_GLOBAL_STACK() /** GC_STACK_POINTER() = stacktop**/
  53.  
  54. #ifdef ALIGN8
  55. #define BYTE_ALIGNMENT 8
  56. #else 
  57. #define BYTE_ALIGNMENT 4
  58. #endif
  59.  
  60. /* Configuration section */
  61.  
  62. /* Variables that we  don't want to own up about 
  63.    STACK_START_MISALIGNED: Clipper requires stack-pointers to be
  64.                            multiples of 4, and not multiples of 8
  65.    FD_SET_PATCH_NEEDED: 4.2 BSD machine
  66.    FEEL_RC_FILE:     name of initialisation file 
  67.    CHECK_KEYBOARD:        signals are broken, so put ^C catcher in interpret loop
  68.  */
  69.  
  70. /* Standard values... */
  71. #define HAS_POPEN
  72. #define FEEL_RC_FILE "/.feelrc"
  73.  
  74. /* Machine dependant changes... */
  75. #ifdef __clipper
  76. #define STACK_START_MISALIGNED
  77. #define FD_SET_PATCH_NEEDED
  78. #endif
  79.  
  80. #ifdef msdos
  81. #undef HAS_POPEN
  82. #define FEEL_RC_FILE "./feel.rc"
  83. #define CHECK_KEYBOARD 5000
  84. #endif
  85.  
  86. #endif /* DEFS_H */
  87. /* End of defs.h */
  88.